Wireless Load Control System

ABSTRACT

A wireless load control system for controlling one or more electrical loads comprises a wireless control device (e.g., a gateway device) able to obtain a present time from a server via a network (e.g., the Internet), control the electrical loads according to a timeclock schedule, and disable the timeclock schedule if the present time is not able to be obtained from the server via the network. The wireless control device may also be able to obtain the present time from a digital message received from an external device (e.g., a smart phone or a tablet device) via the network. The wireless control device may be configured to receive a control signal indicating a power outage (e.g., from a battery backup device), and to operate in a low-power mode in response to receiving the control signal indicating the power outage.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a non-provisional application of commonly-assignedU.S. Provisional Application No. 61/923,055, filed Jan. 2, 2014,entitled WIRELESS LOAD CONTROL SYSTEM, the entire disclosure of which ishereby incorporated by reference.

BACKGROUND

1. Field of the Disclosure

The present disclosure relates to a load control system for controllingthe amount of power delivered to an electrical load, and moreparticularly, to a wireless lighting control system for controlling theintensity of one or more lighting loads according to a timeclockschedule.

2. Description of the Related Art

Home automation systems, which have become increasingly popular, may beused by homeowners to integrate and control multiple electrical and/orelectronic devices in their house. For example, a homeowner may connectappliances, lights, blinds, thermostats, cable or satellite boxes,security systems, telecommunication systems, and the like to each othervia a wireless network. The homeowner may control these devices using acontroller or user interface provided via a phone, a tablet, a computer,and the like directly connected to the network or remotely connected viathe Internet. These devices may communicate with each other and thecontroller to, for example, improve their efficiency, their convenience,and/or their usability.

Some prior art controllers of home automation systems have controlledelectrical and/or electrical devices according to timeclock schedulesstored in memory in the controllers. Such controllers use timers to keeptrack of the time of day and year so that the controllers are able toappropriately control the electrical and/or electrical devices atrespective event times according to stored timeclock schedules.Typically, such a controller comprises a battery backup to maintain thepresent time and date in the event of a power loss to the controller.However, batteries are often large and costly and may be difficult toreplace. In addition, batteries will eventually run out, at which time,the controller will be unable to maintain the time and date informationto then correctly execute the timeclock schedule.

Therefore, there is a need for a controller for a load control systemthat is able to control electrical loads according to a timeclockschedule without the need for a battery backup.

SUMMARY

As described herein, a method of controlling one or more electricalloads comprises: (1) obtaining a present time from a server via anetwork (e.g., the Internet); (2) controlling the electrical loadsaccording to a timeclock schedule; and (3) disabling the timeclockschedule if the present time is not able to be obtained from the servervia the network. The method may also comprise obtaining the present timefrom a digital message received from an external device via the network.

In addition, a wireless control device that operates according to atimeclock schedule may comprise a first communication circuit configuredto transmit wireless signals, a second communication circuit configuredto be electrically coupled to a network (e.g., the Internet), and acontrol circuit electrically coupled to the first and secondcommunication circuits. The control circuit may be configured to obtaina present time from a server via the second communication circuit, andto transmit digital messages via the first communication circuit atevent times of the timeclock schedule. The digital messages may eachinclude a command for controlling at least one electrical load accordingto the timeclock schedule. The control circuit may be configured tocease transmitting the digital messages at the event times of thetimeclock schedule if the present time is not able to be obtained fromthe server via the network. The wireless control device may furthercomprise a power supply connector for receiving a supply voltage forpowering the control circuit and the first and second communicationcircuits. The control circuit may be configured to receive a controlsignal indicating a power outage via the power supply connector, and tooperate in a low-power mode in response to receiving the control signalindicating the power outage.

A battery backup device for powering an external device is alsodescribed herein. The battery backup device may comprise: (1) an outputconnector adapted to be coupled to an external device so as to providepower to the external device; (2) a power supply configured to becoupled to a power source and to generate a supply voltage; (3) abattery configured to produce a battery voltage; (4) a first switchingcircuit configured to be controlled to provide one of the supply voltageand the battery voltage at the output connector; and (5) a controlcircuit configured to detect a power outage at the power source and tocontrol the first switching circuit to provide the battery voltage atthe output connector during the power outage. The control circuit may beconfigured to generate a control signal indicating that the power outageis presently occurring at the output connector.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simple diagram of an example load control system forcontrolling one or more electrical loads.

FIG. 2 is a simplified block diagram of an example wireless controldevice.

FIG. 3 is a simplified block diagram of an example battery backupdevice.

FIGS. 4-6 are simplified flowcharts of procedures executed by a controlcircuit of a wireless control device to enable and disable a timeclockschedule.

DETAILED DESCRIPTION

FIG. 1 is a simple diagram of an example load control system 100 (e.g.,a lighting control system) for controlling the amount of power deliveredfrom an alternating-current (AC) power source to one or more electricalloads. The load control system 100 may comprise a first load controldevice, e.g., a wall-mounted dimmer switch 110, coupled in serieselectrical connection between the AC power source 102 and a firstlighting load, e.g., a first light bulb 112 installed in a ceilingmounted downlight fixture 114. Alternatively, the first light bulb 112could be installed in a wall-mounted lighting fixture or other lightingfixture mounted to another surface. The dimmer switch 110 may be adaptedto be wall-mounted in a standard electrical wallbox. The load controlsystem 100 may also comprise a second load control device, e.g., aplug-in load control device 120, coupled in series electrical connectionbetween the AC power source 102 and a second lighting load, e.g., asecond light bulb 122 installed in a lamp (e.g., a table lamp 124).Specifically, the plug-in load control device 120 may be plugged into anelectrical receptacle 126 that is powered by the AC power source 102 andthe table lamp 124 may be plugged into the plug-in load control device.Alternatively, the second light bulb 122 could be installed in a tablelamp or other lamp that may be plugged into the plug-in load controldevice 120. The plug-in load control device 120 could alternatively beimplemented as a table-top load control device or a remotely-mountedload control device.

The dimmer switch 110 may comprise a plurality of actuators 116 (e.g.,buttons) for controlling the light bulb 112. In response to actuation ofthe actuators 116, the dimmer switch 110 may be configured to turn thelight bulb 112 on and off, and to increase or decrease the amount ofpower delivered to the light bulb and thus increase or decrease theintensity of the light bulb from a minimum intensity (e.g.,approximately 1%) to a maximum intensity (e.g., approximately 100%). Thedimmer switch 110 may further comprise a plurality of visual indicators118, e.g., light-emitting diodes (LEDs), which are arranged in a lineararray and illuminated to provide feedback of the intensity of the lightbulb 112. Examples of wall-mounted dimmer switches are described ingreater detail in U.S. Pat. No. 5,248,919, issued Sep. 29, 1993,entitled LIGHTING CONTROL DEVICE, and U.S. Patent ApplicationPublication No. 2014/0132475, published May 15, 2014, entitled WIRELESSLOAD CONTROL DEVICE, the entire disclosures of which are herebyincorporated by reference.

The load control system 100 may further comprise one or more inputdevices, e.g., RF transmitters, such as a battery-powered remote controldevice 130, an occupancy sensor 140, or a daylight sensor 150. Thedimmer switch 110 and the plug-in load control device 120 are bothconfigured to receive digital messages via wireless signals, e.g.,radio-frequency (RF) signals 106, transmitted by the battery-poweredremote control device 130, the occupancy sensor 140, or the daylightsensor 150. In response to the received digital messages, the dimmerswitch 110 and the plug-in load control device 120 are each configuredto turn the respective light bulb 112, 122 on and off, and to increaseor decrease the intensity of the respective light bulb. The dimmerswitch 110 and the plug-in load control device 120 may bothalternatively be implemented as electronic switches configured to onlyturn on and off the respective light bulbs 112, 122.

The remote control device 130 may comprise one or more actuators 132(e.g., one or more of an on button, an off button, a raise button, alower button, and a preset button). The remote control device 130 may bea handheld remote control. Alternatively, the remote control device 130could be mounted vertically to a wall or supported on a pedestal to bemounted on a tabletop. Examples of battery-powered remote controldevices are described in greater detail in commonly-assigned U.S. Pat.No. 8,330,638, issued Dec. 11, 2012, entitled WIRELESS BATTERY-POWEREDREMOTE CONTROL HAVING MULTIPLE MOUNTING MEANS, and U.S. PatentApplication Publication No. 2012/0286940, published Nov. 12, 2012,entitled CONTROL DEVICE HAVING A NIGHTLIGHT, the entire disclosures ofwhich are hereby incorporated by reference.

The remote control device 130 may transmit RF signals 106 in response toactuations of one or more of the actuators 132. For example, the RFsignals 106 may be transmitted using a proprietary RF protocol, such asthe ClearConnect® protocol, or a standard protocol, such as ZIGBEE,Z-WAVE, and KNX-RF protocols. In addition, the RF signals 106 may betransmitted, for example, using a standard wireless technology, forexample, one of Wi-Fi, Bluetooth, and Near Field Communication (NFC)technologies. All digital messages transmitted by the remote controldevice 130 may include a command and identifying information, forexample, a serial number (e.g., a unique identifier) associated with theremote control device. The remote control device 130 may be assigned tothe dimmer switch 110 and/or the plug-in load control device 120 duringa configuration procedure of the load control system 100, such that thedimmer switch 110 and/or the plug-in load control device 120 areresponsive to digital messages transmitted by the remote control device130 via the RF signals 106. Examples of methods of associating wirelesscontrol devices are described in greater detail in commonly-assignedU.S. Patent Application Publication No. 2008/0111491, published May 15,2008, entitled RADIO-FREQUENCY LIGHTING CONTROL SYSTEM, and U.S. PatentApplication Publication No. 2013/0214609, published Aug. 22, 2013,entitled TWO-PART LOAD CONTROL SYSTEM MOUNTABLE TO A SINGLE ELECTRICALWALLBOX, the entire disclosures of which are hereby incorporated byreference.

The occupancy sensor 140 may be configured to detect occupancy andvacancy conditions in the space in which the load control system 100 isinstalled. The occupancy sensor 140 may transmit digital messages to thedimmer switch 110 and/or the plug-in load control device 120 via the RFsignals 106 in response to detecting the occupancy or vacancyconditions. The dimmer switch 110 and/or the plug-in load control device120 may each be configured to turn on the respective light bulb 112, 122in response to receiving an occupied command, and to turn off therespective light bulb in response to receiving a vacant command.Alternatively, the occupancy sensor 140 may operate as a vacancy sensorto only turn off the lighting loads in response to detecting a vacancycondition (e.g., to not turn on the light bulbs 112, 122 in response todetecting an occupancy condition). Examples of RF load control systemshaving occupancy and vacancy sensors are described in greater detail incommonly-assigned U.S. Pat. No. 8,009,042, issued Aug. 30, 2011 Sep. 3,2008, entitled RADIO-FREQUENCY LIGHTING CONTROL SYSTEM WITH OCCUPANCYSENSING; U.S. Pat. No. 8,199,010, issued Jun. 12, 2012, entitled METHODAND APPARATUS FOR CONFIGURING A WIRELESS SENSOR; and U.S. Pat. No.8,228,184, issued Jul. 24, 2012, entitled BATTERY-POWERED OCCUPANCYSENSOR, the entire disclosures of which are hereby incorporated byreference.

The daylight sensor 150 may be configured to measure a total lightintensity in the space in which the load control system is installed.The daylight sensor 150 may transmit digital messages including themeasured light intensity to the dimmer switch 110 and/or the plug-inload control device 120 via the RF signals 106 for controlling theintensities of the respective light bulbs 112, 122 in response to themeasured light intensity. Examples of RF load control systems havingdaylight sensors are described in greater detail in commonly-assignedU.S. Pat. No. 8,410,706, issued Apr. 2, 2013, entitled METHOD OFCALIBRATING A DAYLIGHT SENSOR; and U.S. Pat. No. 8,451,116, issued May28, 2013, entitled WIRELESS BATTERY-POWERED DAYLIGHT SENSOR, the entiredisclosures of which are hereby incorporated by reference.

The load control system 100 may further comprise a gateway device 160(e.g., a bridge) configured to enable communication with a network 162,e.g., a wireless or wired local area network (LAN). The gateway device160 may be connected to a router (not shown) via a wired digitalcommunication link 164 (e.g., an Ethernet communication link). Therouter may allow for communication with the network 162, e.g., foraccess to the Internet. Alternatively, the gateway device 160 may bewirelessly connected to the network 162, e.g., using Wi-Fi technology.

The gateway device 160 may be configured to transmit RF signals 106 tothe dimmer switch 110 and/or the plug-in load control device 120 (e.g.,using the proprietary protocol) for controlling the respective lightbulbs 112, 122 in response to digital messages received from externaldevices via the network 162. The gateway device 160 may be configured toreceive RF signals 106 from the dimmer switch 110, the plug-in loadcontrol device 120, the remote control device 130, the occupancy sensor140, and/or the daylight sensor 150, and to transmit digital messagesvia the network 162 for providing data (e.g., status information) toexternal devices. The gateway device 160 may operate as a centralcontroller for the load control system 100, or may simply relay digitalmessages between the control devices of the load control system and thenetwork 162.

The load control system 100 may further comprise a network device 170,such as, a smart phone (for example, an iPhone® smart phone, an Android®smart phone, or a Blackberry® smart phone), a personal computer, alaptop, a wireless-capable media device (e.g., MP3 player, gamingdevice, or television), a tablet device (for example, an iPad® hand-heldcomputing device), a Wi-Fi or wireless-communication-capable television,or any other suitable Internet-Protocol-enabled device. The networkdevice 170 may be operable to transmit digital messages in one or moreInternet Protocol packets to the gateway device 160 via RF signals 108either directly or via the network 162. For example, the network device170 may transmit the RF signals 108 to the gateway device 160 via aWi-Fi communication link, a Wi-MAX communications link, a Bluetooth®communications link, a near field communication (NFC) link, a cellularcommunications link, a television white space (TVWS) communication link,or any combination thereof. Examples of load control systems operable tocommunicate with network devices on a network are described in greaterdetail in commonly-assigned U.S. Patent Application Publication No.2013/0030589, published Jan. 31, 2013, entitled LOAD CONTROL DEVICEHAVING INTERNET CONNECTIVITY, the entire disclosure of which is herebyincorporated by reference.

The network device 170 may have a visual display 172, which may comprisea touch screen having, for example, a capacitive touch pad displacedovertop the visual display, such that the visual display may displaysoft buttons that may be actuated by a user. The network device 170 maycomprise a plurality of hard buttons, e.g., physical buttons (notshown), in addition to the visual display 172. The network device 170may download a product control application for allowing a user of thenetwork device to control the lighting control system 100. In responseto actuations of the displayed soft buttons or hard buttons, the networkdevice 170 may transmit digital messages to the gateway device 160through the wireless communications described herein. The network device170 may transmit digital messages to the gateway device 160 via the RFsignals 108 for controlling the dimmer switch 110 and/or the plug-inload control device 120. The gateway device 160 may be configured totransmit RF signals 108 to the network device 170 in response to digitalmessages received from the dimmer switch 110, the plug-in load controldevice 120, the remote control device 130, the occupancy sensor 140,and/or the daylight sensor 150 (e.g., using the proprietary protocol)for displaying data (e.g., status information) on the visual display 172of the network device.

The operation of the load control system 100 may be programmed andconfigured using the network device 170. An example of a configurationprocedure for a wireless load control system is described in greaterdetail in commonly-assigned U.S. Patent Application Publication No.2014/0265568, published Sep. 18, 2014, entitled COMMISSIONING LOADCONTROL SYSTEMS, the entire disclosure of which is hereby incorporatedby reference.

The gateway device 160 may also be configured to transmit digitalmessages to the dimmer switch 110 and/or the plug-in load control device120 for controlling the respective light bulbs 112, 122 according to atimeclock schedule, which may be stored in a memory in the gatewaydevice. For example, the gateway device 160 may comprise an astronomicaltimeclock for determining the sunrise and sunset times of each day ofthe year. The timeclock schedule may include a number of timeclockevents, each having an event time and a corresponding command or preset.The gateway device 160 may be configured to keep track of the presenttime and day and to transmit the appropriate command or preset at therespective event time of each timeclock event.

The gateway device 160 may be configured to obtain the present time anddate from the Internet via the network 162, e.g., by communicating witha time server, such as, the National Institute of Standards andTechnology server, which has a Domain Name System (DNS) address oftime.nst.gov. For example, the gateway device 160 may obtain the presenttime and date when the gateway device is first powered on or reset, andmay re-synchronize the time and day periodically, e.g., each night. Thegateway device 160 may also be configured to obtain the present time anddate from the network device 170. For example, the network device 170may be configured to transmit the present time and date to the gatewaydevice 160 via the RF signals 108 whenever a user logs into the productcontrol application running on the network device.

The gateway device 160 may not have an internal battery backup formaintaining the present time and date, but may re-synchronize thepresent time and date as discussed above. If the gateway device 160“loses” the present time and date, the gateway device is configured todisable the timeclock schedule. For example, the gateway device 160 maylose the present time and date if the gateway device 160 is reset andthe connection to the Internet via the network 162 is not available.When the gateway device 160 is able to obtain the present time and dateonce again (e.g., via the Internet or the network device 170), thegateway device may be configured to enable the timeclock schedule.

In addition, the gateway device 160 may be configured to obtain thelocation of the gateway device (e.g., the location of the building inwhich the load control system 100 is installed) from the network device170). For example, the network device 170 may determine the location ofthe network device (e.g., longitude and latitude information) using, forexample, a global positioning system (GPS) receiver. The network device170 may then transmit the location information to the gateway device 160via the RF signals 108 whenever a user logs into the product controlapplication running on the network device. The gateway device 160 may beconfigured to use the location information to determine the appropriatesunrise and sunset times for the astronomical timeclock and/or the timezone (e.g., daylight savings time information) at the location of thespecified longitude and latitude. Further, since the network device 170may be capable of remotely logging into the gateway device 160 via thenetwork 162 (e.g., via a cellular communications link when then networkdevice is not located in the building in which the load control system100 is installed), the gateway device may be optionally configured toconfirm that the location of the network device is the same as thelocation stored in the gateway device prior to obtaining the presenttime and date from the network device.

The load control system 100 may also comprise an optional externalbattery pack 166 for the gateway device 160 to provide a battery backup,e.g., for maintaining the present time and date in the event of a poweroutage. The battery pack 166 may be coupled to the gateway device 166,for example, via a micro-USB power cord 168. The battery pack 166 may beplugged into the electrical receptacle 126 (that is powered by the ACpower source 102) and may comprise a power supply for generating asupply voltage for powering the gateway device 160 during normalconditions. The battery pack 166 may also comprise a battery forpowering the gateway device 160 in the event of a power outage. Thebattery pack 166 may be configured to detect a power outage and mayswitch to the battery for powering the gateway device 160. In addition,the battery pack 166 may be configured to signal to the gateway device160 that there is a power outage (e.g., via the data lines of themicro-USB power cord 168), and the gateway device 160 may be configuredto go into a low-power mode so as to not drain the battery of thebattery pack 166 too fast.

Alternatively, the load control devices of the load control system 100(e.g., the dimmer switch 110 and the plug-in load control device 120)could each be configured to store a timeclock schedule for controllingthe respective light bulb 112, 122. The dimmer switch 110 and theplug-in load control device 120 may each be configured to obtain thepresent time and date from the Internet via the network 162 in a similarmanner as the gateway device 160 as described above. For example, thedimmer switch 110 and the plug-in load control device 120 may each beconfigured to directly connect to the network 162 (e.g., using Wi-Fitechnology) to obtain the present time and ate or may be configured toreceive the present time and date from the gateway device 160. Inaddition, the dimmer switch 110 and the plug-in load control device 120may each be configured to obtain the present time and date from thenetwork device 170. The dimmer switch 110 and the plug-in load controldevice 120 may not comprise battery backup for maintaining the presenttime and date in the event of a power outage. Accordingly, if thepresent time and date is lost, the dimmer switch 110 and the plug-inload control device 120 may each be configured to disable the respectivetimeclock schedule in a manner similar to that of the gateway device 160as described above.

The load control system 100 may comprise one or more other types of loadcontrol devices, such as, for example, a dimming ballast for driving agas-discharge lamp; a light-emitting diode (LED) driver for driving anLED light source; a dimming circuit for controlling the intensity of alighting load; a screw-in luminaire including a dimmer circuit and anincandescent or halogen lamp; a screw-in luminaire including a ballastand a compact fluorescent lamp; a screw-in luminaire including an LEDdriver and an LED light source; an electronic switch, controllablecircuit breaker, or other switching device for turning an appliance onand off; a controllable electrical receptacle or controllable powerstrip for controlling one or more plug-in loads; a motor control unitfor controlling a motor load, such as a ceiling fan or an exhaust fan; adrive unit for controlling a motorized window treatment or a projectionscreen; motorized interior or exterior shutters; a thermostat for aheating and/or cooling system; a temperature control device forcontrolling a setpoint temperature of an HVAC system; an airconditioner; a compressor; an electric baseboard heater controller; acontrollable damper; a variable air volume controller; a fresh airintake controller; a ventilation controller; a hydraulic valves for useradiators and radiant heating system; a humidity control unit; ahumidifier; a dehumidifier; a water heater; a boiler controller; a poolpump; a refrigerator; a freezer; a television or computer monitor; avideo camera; an audio system or amplifier; an elevator; a power supply;a generator; an electric charger, such as an electric vehicle charger;and an alternative energy controller.

In addition, the load control system 100 may comprise other types ofinput device, such as, for example, temperature sensors, humiditysensors, radiometers, cloudy-day sensors, pressure sensors, smokedetectors, carbon monoxide detectors, air-quality sensors, motionsensors, security sensors, proximity sensors, fixture sensors, partitionsensors, keypads, kinetic or solar-powered remote controls, key fobs,cell phones, smart phones, tablets, personal digital assistants,personal computers, laptops, timeclocks, audio-visual controls, safetydevices, power monitoring devices (such as power meters, energy meters,utility submeters, utility rate meters), central control transmitters,residential, commercial, or industrial controllers, or any combinationof these input devices.

FIG. 2 is a simplified block diagram of an example wireless controldevice, e.g., a gateway device 200, which may be deployed as, forexample, the gateway device 160 of the load control system 100 shown inFIG. 1. The gateway device 200 may comprise a control circuit 210, whichmay include one or more of a processor (e.g., a microprocessor), amicrocontroller, a programmable logic device (PLD), a field programmablegate array (FPGA), an application specific integrated circuit (ASIC), orany suitable processing device. The gateway device 200 may comprise anetwork communication circuit 212 coupled to a network connector 214(e.g., an Ethernet jack), which is adapted to be connected to a wireddigital communication link (e.g., an Ethernet communication link) forallowing the control circuit 210 to communicate with network devices ona network (e.g., a local area network, such as the network 162 shown inFIG. 1). Alternatively, the network communication circuit 212 may beconfigured to be wirelessly connected to the network, e.g., using Wi-Fitechnology to transmit and receive RF signals (e.g., the RF signals 108shown in FIG. 1).

The gateway device 200 further comprises a wireless communicationcircuit 216, for example, including an RF transceiver coupled to anantenna for transmitting and receiving RF signals (e.g., the RF signals106 shown in FIG. 1) using a proprietary protocol (e.g., theClearConnect® protocol). The control circuit 210 may be coupled to thewireless communication circuit 216 for transmitting digital messages viathe RF signals 106, for example, to control the dimmer switch 110 and/orthe plug-in load control device 120 in response to digital messagesreceived via the network communication circuit 212. The control circuit210 may also be configured to receive digital messages from, forexample, the dimmer switch 110, the plug-in load control device 120, theremote control device 130, the occupancy sensor 140, and/or the daylightsensor 150. For example, the control circuit 210 may be operable toreceive a digital message including the intensity of a lighting load(e.g., one of the light bulbs 112, 122 of the load control system 100shown in FIG. 1), and to transmit a digital message including theintensity of the lighting load to the network device 170, e.g., fordisplaying the intensity on the visual display 172.

The control circuit 210 may comprise a timer for enabling the controlcircuit to transmit digital messages for controlling electrical loadsaccording to a timeclock schedule. For example, the control circuit 210may operate an astronomical timeclock for determining the sunrise andsunset times of each day of the year. The control circuit 210 may becoupled to a memory 218 for storage of the timeclock schedule. Thememory 218 may be implemented as an external integrated circuit (IC) oras an internal circuit of the control circuit 210. The control circuit210 may keep track of the present time and day and transmit theappropriate command or preset at one or more event times of thetimeclock schedule. The control circuit 210 may communicate via thenetwork communication circuit 212 to obtain the present time and datefrom the Internet, e.g., from a time server. For example, the controlcircuit 210 may be configured to obtain the present time and date whenthe gateway device is first powered on or reset, and may re-synchronizethe time and day periodically, e.g., each night. The control circuit 210may also be configured to obtain the present time and date from adigital message received via the network communication circuit 212 froma network device (e.g., the network device 170 shown in FIG. 1). Thecontrol circuit 210 may also be configured to obtain the location (e.g.,longitude and latitude information) of the gateway device 200 from thenetwork device.

The gateway device 200 may not have a battery backup for maintaining thepresent time and date in the memory 218. If the control circuit 210loses the present time and date, the control circuit may be configuredto disable the timeclock schedule. When the timeclock schedule isdisabled, the control circuit may not transmit commands at the eventtimes according the timeclock schedule. For example, the control circuit200 may lose the present time and date if the connection to the Internetis not available and the control circuit is reset. If the controlcircuit 200 loses the Internet connection without being reset, thecontrol circuit 200 may not be able to re-synchronize the time and datenightly via the Internet, but may be able keep track of the time usingthe internal timer. However, if the Internet connection is down for along period of time, the accuracy of the timer may drift, such that thepresent time used by the control circuit 200 may drift from the actualtime (e.g., the time that would be determined from the time server viathe Internet). For example, the time used by the control circuit 200 maydrift up to approximately 1.2 minutes per month without re-synchronizingthe time and date.

The control circuit 210 may be configured to disable the timeclockbefore the time drifts by a predetermined maximum T_(DRIFT-MAX) (e.g.,approximately 2 minutes). After losing the Internet connection withoutbeing reset, the control circuit 210 may attempt to obtain the presenttime and date from the Internet, for example, every four minutes. Thecontrol circuit 210 may wait for an Internet timeout period T_(TIMEOUT)before disabling the timeclock, such that the time used by the controlcircuit does not drift by more than the predetermined maximumT_(DRIFT-MAX) while the Internet connection is down. For example, theInternet timeout period T_(TIMEOUT) may be approximately 40 hours, butcould be as long as six months depending on the accuracy of thetimeclock. If the control circuit 210 is able to obtain the present timeand date from a digital message received from a network device (e.g.,the network device 170) before the end of the Internet timeout periodT_(TIMEOUT), the control circuit may re-synchronize the time and beginthe Internet timeout period T_(TIMEOUT) once again. At the end of theInternet timeout period T_(TIMEOUT,) the control circuit may disable thetimeclock schedule. When the control circuit 210 is able to obtain thepresent time and date once again (e.g., via the Internet or the networkdevice 170), the control circuit may enable the timeclock schedule, andmay once again transmit the appropriate commands at the event times ofthe timeclock schedule.

The control circuit 210 may be responsive to an actuator 220 forreceiving a user input. For example, the control circuit 210 may beoperable to associate the gateway device 200 with one or more controldevices of the load control system 100 in response to actuations of theactuator 220 during a configuration procedure of the load controlsystem. The control circuit 210 may store the serial numbers of thecontrol devices to which the gateway device 200 is associated in thememory 218. The gateway device 200 may comprise additional actuators towhich the control circuit 210 is responsive.

The control circuit 210 may illuminate a visual indicator 222 to providefeedback to a user of the load control system. For example, the controlcircuit 210 may blink or strobe the visual indicator 222 to indicate afault condition. In addition, the control circuit 210 may be operable toilluminate the visual indicator 222 different colors to indicatordifferent conditions or states of the gateway device 200. The visualindicator 420 may be illuminated by, for example, one or morelight-emitting diodes (LEDs). Alternatively, the gateway device 400 maycomprise more than one visual indicator.

The gateway device 200 may further comprise a power supply 224 forgenerating a DC supply voltage V_(CC) for powering the control circuit210, the network communication circuit 212, the wireless communicationcircuit 216, the memory 218, and other circuitry of the gateway device.The power supply 224 may be coupled to a power supply connector 226(e.g., a micro-USB port) for receiving a supply voltage (e.g., a DCvoltage) and for drawing current from an external power source (e.g.,the battery pack 166).

The gateway device 200 may also comprise a detect circuit 228 coupled tothe power supply connector 226, e.g., to the data lines of the micro-USBport, for receiving a control signal from an external device (e.g., thebattery pack 166). For example, the detect circuit 228 may be configuredto provide a control signal V_(SIG) to the control circuit 210 thatindicates a power outage. Alternatively, the control circuit 210 may bedirectly coupled to the data lines of the power supply connector 226 forreceiving a control signal indicating a power outage. For example, theexternal device may be configured to switch an impedance in seriesbetween the data lines of the power supply connector 226 during thepower outage and the detect circuit may be configured to detect theimpedance. The control circuit 210 may be configured to go into alow-power mode in response to receiving the control signal V_(SIG)indicating the power outage. The control circuit 210 may be configuredto adjust the operation of the gateway device 200 to draw less powerthrough the power supply connector 226 in the low-power mode. Forexample, in the low-power mode, the control circuit 210 may beconfigured to turn off or dim the visual indicator 222, minimize thenumber of digital messages transmitted by the wireless communicationcircuit 216, and/or put the control circuit 210 and/or the wirelesscommunication circuit 216 in a sleep mode.

FIG. 3 is a simplified block diagram of an example battery backup device300, which may be deployed as, for example, the battery pack 166 of theload control system 100 shown in FIG. 1. The battery backup device 300may provide power to an external device, such as the gateway device 160of the load control system 100 of FIG. 1 and/or the gateway device 200of FIG. 2. The battery backup device 300 may comprise a power supply 310adapted to coupled to an external power source (e.g., the AC powersource 102) via a power connector 312 (e.g., an electrical cord pluggedinto an electrical receptacle). The power supply 310 may be configuredto generate a supply voltage V_(SPLY) (e.g., approximately 5 volts). Thebattery backup device 300 may also comprise a battery 314 configured togenerate a battery voltage V_(BATT) (e.g., approximately 5 volts). Thebattery backup device 300 may comprise an output connector 316 (e.g., aUSB port) adapted to be coupled to a micro-USB power cord (e.g., themicro-USB power cord 168). The output connector 316 may provide anoutput voltage V_(OUT) to the external device, where the output voltageis one of supply voltage V_(SPLY) and the battery voltage V_(BATT) aswill be described below.

The battery backup device 300 may comprise a control circuit 320, whichmay be an analog control circuit or may including one or more of aprocessor (e.g., a microprocessor), a microcontroller, a programmablelogic device (PLD), a field programmable gate array (FPGA), anapplication specific integrated circuit (ASIC), or any suitableprocessing device. The battery backup device 300 may comprise a firstswitching circuit 322, e.g., a single-pole double-throw (SPDT) relay,for controllably selecting one of the supply voltage V_(SPLY) and thebattery voltage V_(BATT) to be provided to the output connector 316 forpowering the external device. The battery backup device 300 may alsocomprise a detect circuit 324 coupled to the power connector 312 andconfigured to generate a detect signal V_(DET) indicating a poweroutage. The control circuit 320 may be configured to generate a firstswitch control signal V_(SW1) for controlling the switching circuit 322in response to the detect signal V_(DET). For example, the controlcircuit 320 may be configured to control the switching circuit 322 tocouple the supply voltage V_(SPLY) to the output connector 316 duringnormal conditions and to couple the battery voltage V_(BATT) to theoutput connector 316 during a power outage.

The control circuit 320 may also be configured to signal to the externaldevice to indicate that the power outage is presently occurring. Forexample, the control circuit 320 may be configured to generate a controlsignal by switching an impedance in series between data terminals of theoutput connector 316 (e.g., the data lines of the micro-USB power cord)during the power outage. The battery backup device 300 may comprise animpedance (e.g., a resistor 326) electrically coupled in series with asecond switching circuit 328 between the data terminals of the outputconnector 316. The control circuit 320 may be configured to generate asecond switch control signal V_(SW2) for rendering the second switchingcircuit 328 (e.g., a transistor) conductive to switch the resistor 326in series between the data terminals of the output connector 316 duringthe power outage. Alternatively, the control circuit 320 could bedirectly coupled to the data terminals of the output connector 316 togenerate a control signal for indicating the power outage to theexternal device. For example, the control circuit 320 may be configuredto transmit a digital message to the external device via the data linesof the micro-USB power cord.

FIGS. 4-6 are simplified flowcharts of procedures executed by a controlcircuit of a wireless control device (e.g., the control circuit 210 ofthe gateway device 200 shown in FIG. 2) to enable and disable atimeclock schedule. FIG. 4 is a simplified flowchart of an examplestartup procedure 400 executed by the control circuit, for example, whenthe control circuit is first powered on or reset at step 410. If anInternet connection is available at step 412, the control circuit mayobtain the present time and date via the Internet, e.g., from a timeserver, at step 414 and enable the timeclock schedule at step 416,before the startup procedure 400 exits. If the Internet connection isnot available at step 412, the control circuit may disable the timeclockschedule at step 418 and begin to blink or strobe a visual indicator(e.g., the visual indicator 222) at step 420, before the startupprocedure 400 exits.

FIG. 5 is a simplified flowchart of a timeclock maintenance procedure500, which may be executed by the control circuit periodically at step510, e.g., once every 24 hours, such as every day at midnight. If theInternet connection is available at step 512 and the time and date isset at step 514, the control circuit may determine if it is time tore-synchronize the time and date (e.g., if the present time is midnight)at step 516. If it is time to re-synchronize the time and date at step516, the control circuit may obtain the present time and date via theInternet, e.g., from a time server, at step 518, and the timeclockmaintenance procedure 500 may exit.

If the Internet connection is not available at step 512, the controlcircuit may determine if an Internet timeout period is active at step520. If not, the control circuit may start the Internet timeout periodby resetting an Internet timeout timer at step 522, before the timeclockmaintenance procedure 500 exits. The Internet timeout timer will expireat the end of the Internet timeout period (e.g., approximately 40hours). If the Internet timeout period is active at step 520 (e.g., theInternet timeout timer is actively counting down), the control circuitmay determine if the end of the Internet timeout period has been reachedat step 524. If so, the control circuit may disable the timeclockschedule at step 526 and begin to blink or strobe the visual indicatorat step 528, before the timeclock maintenance procedure 500 exits. Whenthe Internet connection is available at step 512 and the time and dateare not set at step 514, the control circuit may obtain the present timeand date via the Internet at step 530 and enable the timeclock scheduleat step 532, before the timeclock maintenance procedure 500 exits.

FIG. 6 is a simplified flowchart of a message receiving procedure 500,which may be executed by the control circuit at step 610, for example,when the control circuit receives a digital message from a network(e.g., via the network communication circuit 212). If the receiveddigital message does not include the present time and date at step 612,the control circuit may process the digital message appropriately atstep 614, and the message receiving procedure 600 may exit. If thereceived digital message includes the present time and date at step 612and the Internet connection is available at step 616, the controlcircuit may process the digital message at step 614 and the messagereceiving procedure 600 may exit. If the Internet connection is notavailable at step 616, the control circuit may store the time and datefrom the digital message in memory at step 618 and reset the Internettimeout timer at step 620. If the timeclock is not enabled at step 622,the control circuit may enable the timeclock schedule at step 624 andprocess the digital message at step 614, before the message receivingprocedure 600 exits.

What is claimed is:
 1. A wireless control device comprising: a firstcommunication circuit configured to transmit wireless signals; a secondcommunication circuit configured to be electrically coupled to anetwork; a control circuit electrically coupled to the first and secondcommunication circuits, the control circuit configured to obtain apresent time from a server via the second communication circuit, thecontrol circuit configured to transmit digital messages via the firstcommunication circuit at event times of a timeclock schedule, thedigital messages each including a command for controlling at least oneelectrical load according to the timeclock schedule; wherein the controlcircuit is configured to cease transmitting the digital messages at theevent times of the timeclock schedule if the present time is not able tobe obtained from the server via the network.
 2. The wireless controldevice of claim 1, wherein the control circuit is configured to obtainthe present time from a time server via the Internet.
 3. The wirelesscontrol device of claim 2, wherein the control circuit is configured tocease transmitting the digital messages at the event times of thetimeclock schedule if the control circuit is not able to obtain thepresent time via the Internet when the wireless control device is firstpowered on.
 4. The wireless control device of claim 2, wherein thecontrol circuit is configured to cease transmitting the digital messagesat the event times of the timeclock schedule if the control circuit isnot able to obtain the present time via the Internet when the controlcircuit is reset.
 5. The wireless control device of claim 2, wherein thecontrol circuit is configured to cease transmitting the digital messagesat the event times of the timeclock schedule after a predeterminedtimeout period after the control circuit is not able to obtain thepresent time via the Internet.
 6. The wireless control device of claim1, wherein the control circuit is configured to obtain the present timefrom a first digital message received from an external device via thesecond communication circuit.
 7. The wireless control device of claim 6,wherein the control circuit is configured to obtain a location of theexternal device from a second digital message received from the externaldevice via the second communication circuit, and to store the locationin a memory.
 8. The wireless control device of claim 7, wherein thecontrol circuit is configured to subsequently confirm that a location ofthe external device is the same as the location stored in the memory,and to obtain the present time from a third digital message receivedfrom the external device via the second communication circuit if thelocation of the external device is the same as the location stored inthe memory.
 9. The wireless control device of claim 1, furthercomprising: a power supply connector for receiving a supply voltage forpowering the control circuit and the first and second communicationcircuits; wherein the control circuit is configured to receive a controlsignal indicating a power outage via the power supply connector, and tooperate in a low-power mode in response to receiving the control signalindicating the power outage.
 10. The wireless control device of claim 9,wherein the control circuit is configured to detect the power outage inresponse to detecting an impedance between data terminals of the powersupply connector.
 11. The wireless control device of claim 10, whereinthe power supply connector comprises a micro-USB port.
 12. A batterybackup device for powering an external device, the battery backup devicecomprising: an output connector adapted to be coupled to an externaldevice so as to provide power to the external device; a power supplyconfigured to be coupled to a power source and to generate a supplyvoltage; a battery configured to produce a battery voltage; a firstswitching circuit configured to be controlled to provide one of thesupply voltage and the battery voltage at the output connector; and acontrol circuit configured to detect a power outage at the power sourceand to control the first switching circuit to provide the batteryvoltage at the output connector during the power outage; wherein thecontrol circuit is further configured to generate a control signalindicating that the power outage is presently occurring at the outputconnector.
 13. The battery backup device of claim 12, furthercomprising: an impedance; and a second switching circuit coupled inseries with resistor between data terminals of the output connector;wherein the control circuit is configured to render the second switchingcircuit conductive to couple the resistor in series between the dataterminals of the output connector during the power outage.
 14. A methodof controlling one or more electrical loads comprising: obtaining apresent time from a server via a network; controlling the electricalloads according to a timeclock schedule; and disabling the timeclockschedule if the present time is not able to be obtained from the servervia the network.
 15. The method of claim 14, wherein obtaining a presenttime from a server via a network further comprises obtaining by acontrol device the present time from a time server via the Internet. 16.The method of claim 15, wherein disabling the timeclock schedule furthercomprises disabling the timeclock schedule if the control device is notable to obtain the present time via the Internet when the control deviceis first powered on.
 17. The method of claim 15, wherein disabling thetimeclock schedule further comprises disabling the timeclock schedule ifthe control device is not able to obtain the present time via theInternet when the control device is reset.
 18. The method of claim 15,wherein disabling the timeclock schedule further comprises disabling thetimeclock schedule after a predetermined timeout period after thecontrol device is not able to obtain the present time via the Internet.19. The method of claim 14, further comprising: obtaining the presenttime from a first digital message received from an external device viathe network.
 20. The method of claim 19, further comprising: obtaining alocation of the external device from a second digital message receivedfrom the external device via the network; and storing the location in amemory.
 21. The method of claim 20, further comprising: subsequentlyconfirming that a location of the external device is the same as thelocation stored in the memory; and obtaining the present time from athird digital message received from the external device via the networkif the location of the external device is the same as the locationstored in the memory.
 22. The method of claim 14, further comprising:receiving a control signal indicating a power outage; and operating in alow-power mode in response to receiving the control signal indicatingthe power outage.
 23. The method of claim 14, wherein controlling theelectrical loads according to a timeclock schedule comprisestransmitting digital messages for controlling the electrical loads.